package com.laiketui.app.controller.shop;

import com.laiketui.common.api.shop.ShopService;
import com.laiketui.core.domain.Result;
import com.laiketui.domain.vo.index.IndexDataVo;
import com.laiketui.domain.vo.shop.ShopVo;
import com.laiketui.root.annotation.HttpApiMethod;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 门店
 */
@RestController
public class ShopController {

    @Autowired
    private ShopService shopService;

    @PostMapping("shopList")
    @HttpApiMethod(urlMapping = "app.shop.shopList")
    public Result indexDataList(ShopVo vo){
        return Result.success(shopService.shopList(vo));
    }

    @PostMapping("shopInfo")
    @HttpApiMethod(urlMapping = "app.shop.shopInfo")
    public Result shopInfo(ShopVo vo){
        return Result.success(shopService.shopInfo(vo));
    }
}
